package com.cmcc.cmii.smsim.rest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.server.ServerWebExchange;
import reactor.core.publisher.Mono;

/**
 * @author Thanks
 */
@Controller
@RequestMapping("/view")
public class ViewController {

    @GetMapping("/viewTest")
    public String viewTest(){
      return "websocket_test";
    }


    @GetMapping("/index/{userId}")
    public String index(@PathVariable("userId")String userId, ServerWebExchange exchange){
        return "/index";
    }


}
